package chapter15.manipulator;

/**
 * @author : DuJiabao
 * @Date : 2021/3/4 16:18
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class Manipulator2<T extends HasF> {
  private T obj;

  public Manipulator2(T obj) {
    this.obj = obj;
  }

  public void manipulate() {
    obj.f();   // 正确！
  }
}
